var register = {};

register.ids = ['phoneNum', 'code', 'pass', 'sub_pass'];

register.sendCode = function() {
	$('#code_button').click(function(){
		var req = new common.Request();
		var reqData = {};
		var url = "";
		req.sendRequest(url, reqData, function(e) {
			
		}, function(e) {
			
		});
	});
}

register.submit = function() {
	$('#update_button').click(function(){
		var ver = new verify.login(register.ids, 'empty_style', function() {
			var passStr = $('#pass').val();
			var sub_pass = $('#sub_pass').val();
			if (passStr == sub_pass) {
				var req = new common.Request();
				var reqData = {};
				reqData[''] = $('#phoneNum').val();
				reqData[''] = $('#code').val();
				reqData[''] = $('#pass').val();
				reqData[''] = $('#sub_pass').val();
				var url = "";
				req.sendRequest(url, reqData, function(e){
					
				}, function(e){
					
				});
			} else {
				$('#pass').addClass('empty_style');
				$('#sub_pass').addClass('empty_style');
			}
		}, function() {
			
		});
	});
}

register.sms = function() {
	
}

register.init = function() {
	register.sendCode();
	register.submit();
}

$(document).ready(function() {
	register.init();
});